package com.ssh.service.impl;

import com.ssh.dao.UserDao;
import com.ssh.entity.User;
import com.ssh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * 用户 服务层的实体类
 *
 * @author yang
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao dao;

    @Override
    public User load(Integer id) {
        return dao.load(id);
    }

    @Override
    public User load(Integer id, String password) {
        return dao.load(id, password);
    }

    @Override
    public Integer save(User entity) {
        return dao.save(entity);
    }
}
